/*************************************************************************
    > File Name: buffer.c
    > Author: ma6174
    > Mail: ma6174@163.com 
    > Created Time: Sun 02 Nov 2025 04:48:34 PM CST
 ************************************************************************/

#include <stdio.h>
#include <string.h>
#include <unistd.h>

int main()
{
    // C库函数
    printf("hello printf\n");
    fprintf(stdout, "hello fprintf\n");
    const char *message = "hello fwrite\n";
    fwrite(message, 1, strlen(message), stdout);

    // 系统调用
    const char *w = "hello write\n";
    write(1, w, strlen(w));

	//创建子进程
	fork();
    return 0;
}

